package com.example.management.system.dao

import com.example.management.system.domain.RoleDO
import org.apache.ibatis.annotations.Mapper

/**
 * 角色
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2017-10-02 20:24:47
 */
@Mapper
interface RoleDao {

    operator fun get(roleId: Long?): RoleDO

    fun list(map: Map<String, Any>): List<RoleDO>

    fun count(map: Map<String, Any>): Int

    fun save(role: RoleDO): Int

    fun update(role: RoleDO): Int

    fun remove(roleId: Long?): Int

    fun batchRemove(roleIds: Array<Long>): Int
}
